package com.itfitness.fitnesslib.activity;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;

import com.itfitness.fitnesslib.R;
import com.itfitness.ftlib.widget.meituannav.MeiTuanNavView;

import java.util.ArrayList;

/**
 * @ProjectName: FitnessLib
 * @Package: com.itfitness.fitnesslib.activity
 * @ClassName: MeiTuanNavActivity
 * @Description: java类作用描述 测试用
 * @Author: 作者名
 * @CreateDate: 2020/11/22 20:32
 * @UpdateUser: 更新者：itfitness
 * @UpdateDate: 2020/11/22 20:32
 * @UpdateRemark: 更新说明：
 * @Version: 1.0
 */
public class MeiTuanNavActivity extends AppCompatActivity {
    private MeiTuanNavView mtv;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_meituannav);
        mtv = (MeiTuanNavView) findViewById(R.id.mtv);
        ArrayList<MeiTuanNavView.NavBean> navDatas = new ArrayList<>();
        navDatas.add(new MeiTuanNavView.NavBean(R.drawable.ic_home,R.drawable.ic_home_selected,"首页"));
        navDatas.add(new MeiTuanNavView.NavBean(R.drawable.ic_vip,R.drawable.ic_vip_selected,"会员"));
        navDatas.add(new MeiTuanNavView.NavBean(R.drawable.ic_orderlist,R.drawable.ic_orderlist_selected,"订单"));
        navDatas.add(new MeiTuanNavView.NavBean(R.drawable.ic_mine,R.drawable.ic_mine_selected,"我的"));
        mtv.setNavDatas(navDatas,0);
    }
}
